package _15_generics._15_6;

import net.mindview.util.FourTuple;
import net.mindview.util.TwoTuple;

import java.util.ArrayList;

/**
 * 构建复杂模型
 */
public class _01_TupleList<A,B,C,D> extends ArrayList<FourTuple<A,B,C,D>> {
    public static void main(String[] args) {
        _01_TupleList<Boolean,Character,Integer,Double> t1 = new _01_TupleList();
        t1.add(new FourTuple<>(true,'A',1,1.0));
        t1.add(new FourTuple<>(false,'B',2,2.0));
        for (FourTuple<Boolean, Character, Integer, Double> t : t1) {
            System.out.println(t);
        }
    }
}
